<?php

class duxVaciadoBrModel extends Model2
{
    public function __construct() {
        parent::__construct('progdeprodbr.vaciado');
    }
    
    public function materialVaciado($id){
        $this->setQuery("
            SELECT * FROM colada
            INNER JOIN progdeprodbr.consumos ON consumos.idcolada = colada.Id
            INNER JOIN progdeprodbr.materiales ON materiales.Id = consumos.idmaterial
            WHERE lances.Idlance = $id
        ");
        return $this->_list();
    }
}

?>
